







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Syntax
C# |
---|
[SerializableAttribute] public class View |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class View |
Visual C++ |
---|
[SerializableAttribute] public ref class View |
OrderedBag<T> is a collection that contains items of type T.
The item are maintained in a sorted order. Unlike a OrderedSet, duplicate items (items that
compare equal to each other) are allows in an OrderedBag.
The OrderedBag<(Of <T>)> generic type exposes the following members.
Public Methods
Name | Description | |
---|---|---|
![]() | Add |
Must be overridden to allow adding items to this collection.
|
![]() | AsList |
Get a read-only list view of the items in this view. The
items in the list are in sorted order, with the smallest item
at index 0. This view does not copy any data, and reflects any
changes to the underlying OrderedSet.
|
![]() | AsReadOnly |
Provides a read-only view of this collection. The returned ICollection<T> provides
a view of the collection that prevents modifications to the collection. Use the method to provide
access to the collection without allowing changes. Since the returned object is just a view,
changes to the collection will be reflected in the view.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | Clear |
Removes all the items within this view from the underlying bag.
(Overrides CollectionBase<(Of <T>)>..::Clear()().) |
![]() | Contains |
Determines if the collection contains a particular item. This default implementation
iterates all of the items in the collection via GetEnumerator, testing each item
against item using IComparable<T>.Equals or
Object.Equals.
|
![]() | ConvertAll<(Of <TOutput>)> |
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration
contains the result of applying converter to each item in this collection, in
order.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | CountWhere |
Counts the number of items in the collection that satisfy the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | Equals | (Inherited from Object.) |
![]() | Exists |
Determines if the collection contains any item that satisfies the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | FindAll |
Enumerates the items in the collection that satisfy the condition defined
by predicate.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | ForEach |
Performs the specified action on each item in this collection.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | GetEnumerator |
Enumerate all the items in this view.
(Overrides CollectionBase<(Of <T>)>..::GetEnumerator()().) |
![]() | GetFirst |
Returns the first item in this view: the item
that would appear first if the view was enumerated.
|
![]() | GetHashCode | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
![]() | GetLast |
Returns the last item in the view: the item
that would appear last if the view was enumerated.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf |
Get the first index of the given item in the view. The smallest item in the view has index 0,
the next smallest item has index 1, and the largest item has index Count-1.
|
![]() | LastIndexOf |
Get the last index of the given item in the view. The smallest item in the view has index 0,
the next smallest item has index 1, and the largest item has index Count-1.
|
![]() | Remove |
Must be overridden to allow removing items from this collection.
|
![]() | RemoveAll |
Removes all the items in the collection that satisfy the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | Reversed |
Creates a new View that has the same items as this view, in the reversed order.
|
![]() | ToArray |
Creates an array of the correct size, and copies all the items in the
collection into the array, by calling CopyTo.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | ToString |
Shows the string representation of the collection. The string representation contains
a list of the items in the collection. Contained collections (except string) are expanded
recursively.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | TrueForAll |
Determines if all of the items in the collection satisfy the condition
defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.) |
Protected Methods
Name | Description | |
---|---|---|
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Public Properties
Name | Description | |
---|---|---|
![]() | Count |
Number of items in this view.
(Overrides CollectionBase<(Of <T>)>..::Count.) |
![]() | Item |
Get the item by its index in the sorted order. The smallest item in the view has index 0,
the next smallest item has index 1, and the largest item has index Count-1.
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | ICollection<(Of <T>)>..::IsReadOnly | (Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection..::CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection..::IsSynchronized |
Indicates whether the collection is synchronized.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection..::SyncRoot |
Indicates the synchronization object for this collection.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | IEnumerable..::GetEnumerator |
Provides an IEnumerator that can be used to iterate all the members of the
collection. This implementation uses the IEnumerator<T> that was overridden
by the derived classes to enumerate the members of the collection.
(Inherited from CollectionBase<(Of <T>)>.) |
See Also
Wintellect.PowerCollections Namespace